<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="UTF-8">
    <title>camera list</title>
</head>
<body style="text-align: center">
<!--<div th:replace="~{fragments/header :: header}">...</div>-->
<div th:text="${userModel.title}"></div>

<table border="0">
    <thead>
    <tr>
        <td>ID</td>
        <td>地址</td>
        <td>域名</td>
        <td>host</td>
        <td>描述</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${userModel.userList.size()} eq 0">
        <td colspan="4">没有用户信息!</td>
    </tr>
    <tr th:each="user : ${userModel.userList}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.addr}"></td>
        <td th:text="${user.domain}"></td>
        <td><a th:text="${user.host}" th:href="@{http://{url}(url=${user.host})}" target="_blank"></a></td>
        <td th:text="${user.description}"></td>
    </tr>
    </tbody>
</table>
</body>
</html>